package dao.task;

import java.util.Date;
import java.util.List;

public class TestStudent {
    public static void main(String[] args) {
        StudentDao dao = new StudentDaoImpl();
        Student st = new Student(215,"张三","男","2176229381","6187231","719182",
                3, new Date(),"合肥",new Date(),"南京","361827");
//        int add=dao.add(st);
//        if (add>0)
//            System.out.println("新学生加入成功");
//        else
//            System.out.println("新学生加入失败");
//
//        List<Student> all=dao.findALL();
//        all.forEach(System.out::println);

        List<Student> list = dao.find("李", 1, 10);
        list.forEach(System.out::println);


    }

}
